package wdt_qf.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Test {

    public static void main(String[] args) {
        int minuts = 2;
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime now2 = now.minusMinutes(minuts);
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        String beforeDate = now2.format(formatter);
        String enddate = now.format(formatter);
        System.out.println(beforeDate);
        System.out.println(enddate);
    }
}
